/**   
 * 项目名：五位一体化工安全信息平台
 * 日期：    2019-12-07 14:44:45  
 * Copyright (c) 2015- joysuch-版权所有     
 */
package com.joysuch.wwyt.bp.service;

import com.joysuch.wwyt.bp.entity.BpMainProduct;

import com.joysuch.wwyt.bp.bean.BpMainProductDetailBean;
import com.joysuch.wwyt.bp.bean.BpMainProductEditBean;
import com.joysuch.wwyt.bp.bean.BpMainProductListBean;
import static com.joysuch.wwyt.bp.bean.BpMainProductListBean.Search;


import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface BpMainProductService {

    public BpMainProduct add(BpMainProductEditBean entity) throws Exception;

    void update(BpMainProductEditBean entity) throws Exception;

    Page<BpMainProductListBean> findByPage(Pageable page, Search condition);
    
    void delete(Long id) ;

    BpMainProductDetailBean getById(Long id);
    
    BpMainProduct findById(Long id);
}
